﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using FluentNHibernate.Cfg;
using FluentNHibernate.Cfg.Db;
using NHibernate;
using NHibernate.Cfg;
using NHibernate.Tool.hbm2ddl;
using NHibernate.Linq;

namespace Perpus
{
    public partial class admin_tambahPegawai : Form
    {
        public admin_tambahPegawai()
        {
            InitializeComponent();
        }


        private void button1_Click(object sender, EventArgs e)
        {
            Perpus_Fungsi aa = new Perpus_Fungsi();
            string namaPeg = namaPegawai_textBox1.Text;
            string username = username_textBox2.Text;
            string passPeg = password_textBox3.Text;
            
            aa.TambahPegawai(namaPeg, username, passPeg);
            MessageBox.Show("Berhasil!");
        }

        private void button2_Click(object sender, EventArgs e)
        {
            admin_dataPegawai dataPeg = new admin_dataPegawai();
            dataPeg.Show();
            this.Hide();
        }
    }
}
